
/**
 * Priority constant for the println method; use Log.v.
 */
pub const LOG_VERBOSE:u8 = 2;

/**
 * Priority constant for the println method; use Log.d.
 */
pub const LOG_DEBUG:u8 = 3;

/**
 * Priority constant for the println method; use Log.i.
 */
pub const LOG_INFO:u8 = 4;

/**
 * Priority constant for the println method; use Log.w.
 */
pub const LOG_WARN:u8 = 5;

/**
 * Priority constant for the println method; use Log.e.
 */
pub const LOG_ERROR:u8 = 6;

/**
 * Priority constant for the println method.
 */
pub const LOG_ASSERT:u8 = 7;

pub(crate) struct LogInfo {
    // 地址
    pub(crate)  addr: String,
    // 级别
    pub(crate) log_level:u8, //
    // 内容
    pub(crate) msg: String,
}

impl LogInfo {

    pub(crate) fn new(log_level:u8, msg: String)->Self{
        return LogInfo{
            addr: String::new(),
            log_level,
            msg
        }
    }

}
